WP_Defender\Controller\Recaptcha D

Total Complexity 145
Dependencies 9
Dependents 2
Total lines 954
Lines of code 624
Logical lines of code 288
Comment lines 216
Methods 34
Properties 9

Methods 34

Method Rating Maintainability Complexity Lines of code
add_actions()
B
41 16 54
data_frontend()
A
39 13 64
load_recaptcha_preview()
A
35 8 113
display_recaptcha()
A
44 11 45
recaptcha_post_request()
S
50 7 28
validate_captcha_field_on_wpmu_registration()
S
56 7 17
validate_captcha_field_on_login()
S
56 6 20
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
remove_dublicate_scripts()
S
61 6 11
__construct()
S
56 5 17
is_woocommerce_page()
S
61 5 12
get_api_url()
S
62 5 11
display_login_recaptcha()
S
53 3 34
add_scripts()
S
50 3 29
recaptcha_response()
S
58 3 15
save_settings()
S
56 2 21
validate_captcha_field_on_comment()
S
67 3 8
validate_captcha_field_on_woo_registration()
S
63 3 10
validate_captcha_field_on_woo_login()
S
63 3 10
validate_captcha_field_on_registration()
S
64 3 10
validate_captcha_field_on_lostpassword()
S
73 2 5
get_model()
S
70 2 6
error_message()
S
70 2 6
display_signup_recaptcha()
S
68 2 7
exclude_recaptcha_for_requests()
S
70 2 5
script_loader_tag()
S
70 2 6
import_data()
S
69 2 7
export_strings()
S
72 2 5
display_comment_recaptcha()
S
74 1 5
script_data()
S
76 1 4
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
98 1 1